<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    <title>Document</title>
    <style type="text/css">
        #container {
            width: 300px;
            height: 180px;
            background: red;
        }
    </style>
    <script type="text/javascript">
        window._AMapSecurityConfig = {
            securityJsCode: 'f9658ed3f84f0763d2afd356a1ff6542',
        }
    </script>
    <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=e94552d14a617c12cf98ea07b0d7b607"></script>
</head>

<body>
    <div id="container"></div>
    <script>
        console.log(AMap)
    </script>
</body>

</html>